# coding=utf-8

import django_filters
from .models import MemberBargainRecord, BargainActivityApply


class MemberBargainRecordFilter(django_filters.FilterSet):
    apply_id = django_filters.CharFilter(field_name='bargain_activity')

    class Meta:
        model = MemberBargainRecord
        fields = '__all__'


class BargainActivityApplyFilter(django_filters.FilterSet):
    activity = django_filters.CharFilter(field_name='member_activity__activity')

    class Meta:
        model = BargainActivityApply
        fields = '__all__'
